import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/Index'
import Cart from '@/components/Cart'
import Order from '@/components/Order'
import Goods from '@/components/Goods'
import Collect from '@/components/Collect'
import Login from '@/components/Login'
import Forgetpwd from '@/components/Forgetpwd'
import Register from '@/components/Register'

Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/',
            name: 'Index',
            component: Index
        },
        {
            path: '/goods',
            name: 'Goods',
            component: Goods
        },
        {
            path: '/cart',
            name: 'Cart',
            component: Cart
        },
        {
            path: '/order',
            name: 'Order',
            component: Order
        },
        {
            path: '/login',
            name: 'Login',
            component: Login
        },
        {
            path: '/collect',
            name: 'Collect',
            component: Collect
        },
        {
            path: '/register',
            name: 'Register',
            component: Register
        },
        {
            path: '/forgetpwd',
            name: 'Forgetpwd',
            component: Forgetpwd
        },
    ]
})